#!/usr/bin/env bash

function use_jdk() {
  source "${HOME}/.jabba/jabba.sh"
  jabba use "$1"
}

use_jdk "openjdk@1.${BUILD_ON_JDK:-14}"

exec "$@"
